import * as path from 'path'
const Mocha = require("mocha")

const resolve = function (filepath:string) {
  return path.resolve(__dirname, filepath)
}

const mocha = new Mocha()
mocha.timeout(16000)
mocha.color()
global.runMocha = function () {
  mocha.run()
}

// 此处增加更多的测试文件, 依次加入即可
const indexFile = resolve("../../test/index.spec.js")
mocha.addFile(indexFile)
